class StatoDocumento < ActiveRecord::Base
  acts_as_paranoid unless SHOW_DELETED
  has_many :preventivi, :dependent => :protect
  has_many :dettagli_preventivo, :dependent => :protect, :class_name => "DettaglioPreventivo"
  validates_presence_of :name
  validates_uniqueness_of :name, :scope => :deleted_at, :case_sensitive => false
end
